package course_platform;

public class Main {
    public static void main(String[] args) {
        // 创建教师
        Teacher teacher1 = new Teacher("T001", "张老师", "男");
        Teacher teacher2 = new Teacher("T002", "李老师", "女");

        // 创建课程
        Course course1 = new Course("C001", "Java编程", "教室101", "周一10:00-12:00");
        Course course2 = new Course("C002", "数据结构", "教室102", "周三14:00-16:00");

        // 教师开课
        teacher1.addCourse(course1);
        teacher2.addCourse(course2);

        // 显示课程开课情况
        System.out.println("课程编号:C001(已开课)");
        System.out.println("课程编号:C002(已开课)");

        // 创建学生
        Student student1 = new Student("S001", "张三", "男");
        Student student2 = new Student("S002", "李四", "女");
        Student student3 = new Student("S003", "王五", "女");

        // 学生选课
        System.out.println("\n学生姓名：" + student1.getName() + "，学号：" + student1.getId() + "，性别：" + student1.getGender());
        System.out.println("是否选课：课程编号:C001 是");
        student1.addCourse(course1);
        student1.printSchedule();

        System.out.println("\n学生姓名：" + student2.getName() + "，学号：" + student2.getId() + "，性别：" + student2.getGender());
        System.out.println("是否选课：课程编号:C001 是");
        student2.addCourse(course1);
        System.out.println("是否选课：课程编号:C002 是");
        student2.addCourse(course2);
        student2.printSchedule();

        System.out.println("\n学生姓名：" + student3.getName() + "，学号：" + student3.getId() + "，性别：" + student3.getGender());
        System.out.println("是否选课：课程编号:C001 否");
        student3.printSchedule();

    }
}